There are many built-in examples in Arduino. In the table below, we list all examples that are compatible with Ameba.
Please refer to the following link to set up Ameba for Arduino IDE.
https://www.amebaiot.com/en/amebad-mini-arduino-getting-started/
Please refer to the following link for Arduino built-in example details.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ /
https://www.amebaiot.com/en/amebad-mini-arduino-getting-started/
Please refer to the following link for Arduino built-in example details.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/ /
Category | Name | Comment | Remarks |
---|---|---|---|
01. Basics | AnalogRead Serial | Connect potentiometer to 3.3V. | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. |
Bare Minimum | |||
Blink | Pin LED_BUILTIN sets to LED_B | Onboard LEDs options LED_B and LED_G. (blue and green) | |
DigitalRead Serial | Onboard button PUSH_BTN. | ||
Fade | Replace "led = 9;" by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. "led = 4;" | ||
ReadAnalog Voltage | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
|
BlinkWitout Delay | The onboard blue LED (LED_B) has been used. | Onboard LEDs options LED_G. |
Button | Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN. | ||
Debounce | Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN. | ||
DigitalInput Pullup | Onboard LEDs options LED_B and LED_G. | ||
StateChange Detection | Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN. | ||
toneKeyboard | Replace "tone(8, notes[thisSensor], 20);" by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. "tone(21, notes[thisSensor], 20);" | ||
toneMelody | |||
tone Multiple | |||
tonePitch Follower | |||
|
AnalogIn OutSerial | Replace "analogOutPin = 9;" by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. "analogOutPin = 4;" | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. |
AnalogInput | Onboard LEDs options LED_B and LED_G. ADC pin reading voltage range 0 to 3.3V. | ||
Analog Write Mega | Use PWM pins D4, D5, D7, D12, D13, D14, D17, D20, or D21. | ||
Calibration | Onboard LEDs options LED_B and LED_G. Onboard button PUSH_BTN. ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
Fading | Replace "ledPin = 9;" by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. "ledPin = 4;" | ||
Smoothing | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
|
ASCIITable | ||
Dimmer | Onboard LEDs options LED_B and LED_G. | ||
Graph | Connect potentiometer to 3.3V. | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | |
Midi | Use Serial1 and pin D18, or use Serial2 and pin D1. | ||
MultiSerial | |||
Physical Pixel | Onboard LEDs options LED_B and LED_G. | ||
ReadASCII String | Use PWM pin for LED (D4, D5, D7, D12, D13, D14, D17, D20, or D21). | ||
SerialCall Response | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
Serial CallResponse ASCII | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
SerialEvent | |||
SerialPa ssthrough | Serial options, Serial1 or Serial2. | ||
VirtualColor Mixer | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
|
Arrays | Use pins D1, D2, D3, D4, D5, D6. | |
ForLoop Iteration | Use pins D1, D2, D3, D4, D5, D6. | ||
IfStatement Conditional | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. Onboard LEDs options LED_B and LED_G. | ||
switchCase | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
switchCase2 | Use pins D1, D2, D3, D4, D5, D6. | ||
WhileStatement Conditional | Replace "ledPin = 9;" by a PWM pin (D4, D5, D7, D12, D13, D14, D17, D20, or D21). e.g. "ledPin = 4;" | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | |
|
barGraph | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | |
RowColumn Scanning | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
|
Character Analysis | ||
String Addition Operator | |||
String Append Operator | |||
StringCase Changes | |||
String Characters | |||
String Comparison Operators | ADC pin options A0, A1, A2, A3, A4, A5 and A6. ADC pin reading voltage range 0 to 3.3V. | ||
String IndexOf | |||
String Length | |||
StringLength Trim | |||
String Replace | |||
String StartsWith EndsWith | |||
String Substring | |||
String ToInt |